package com.hongning.railway.ui.main.mine.partymember;

import android.arch.lifecycle.ViewModelProviders;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.hongning.railway.BR;
import com.hongning.railway.R;
import com.hongning.railway.app.AppViewModelFactory;
import com.hongning.railway.databinding.FragmentCheckResultBinding;
import com.hongning.railway.entity.reqbean.QuestionRequestListBean;

import me.goldze.mvvmhabit.base.BaseFragment;

public class CheckReultFragment extends BaseFragment<FragmentCheckResultBinding,CheckReultFragmentViewModel> {
    public static CheckReultFragment newInstance() {
        
        Bundle args = new Bundle();
        
        CheckReultFragment fragment = new CheckReultFragment();
        fragment.setArguments(args);
        return fragment;
    }
    
    @Override
    public int initContentView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return R.layout.fragment_check_result;
    }
    @Override
    public CheckReultFragmentViewModel initViewModel() {
        AppViewModelFactory appViewModelFactory = AppViewModelFactory.getInstance(getActivity().getApplication());
        return ViewModelProviders.of(this,appViewModelFactory).get(CheckReultFragmentViewModel.class);
    }

    @Override
    public void initData() {
        super.initData();

    }

    @Override
    public void onResume() {
        super.onResume();
        viewModel.requestData(new QuestionRequestListBean());
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }
}
